package mju.cxf.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

@ApiModel(description = "员工数据传输对象")
@Data
public class EmployeeDTO {
    @ApiModelProperty(value = "员工id")
    private Integer id;

    @ApiModelProperty(value = "员工编号", example = "E12345")
    private String empNumber;

    @ApiModelProperty(value = "姓名", example = "张三")
    private String name;

    @ApiModelProperty(value = "性别", example = "2")
    private Integer gender;

    @ApiModelProperty(value = "年龄", example = "20")
    private Integer age;

    @ApiModelProperty(value = "电话号码", example = "13800000000")
    private String phone;

    @ApiModelProperty(value = "密码", example = "password123")
    private String password;

    @ApiModelProperty(value = "state",example = "0")
    private Integer state;      // 商品状态（0为已上架，1为未上架）

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createUser;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;
}

